package com.epam.qanda.db.service;

import com.epam.qanda.db.dao.impl.QuestionCategoryDao;

public class QuestionCategoryService {
	public <T> T getByCategory(String name) {
		return new QuestionCategoryDao().getByCategory(name);
	}

	public <T> T getByQuestionId(int qId) {
		return new QuestionCategoryDao().getByQuestionId(qId);
	}

	public <T> T getUnanswered() {
		return new QuestionCategoryDao().getUnanswered();
	}

	public <T> T getTop() {
		return new QuestionCategoryDao().getTop();
	}

	public <T> T getUserAnswers(Integer userId) {
		return new QuestionCategoryDao().getUserAnswers(userId);
	}

	public <T> T getUserQuestions(Integer userId) {
		return new QuestionCategoryDao().getUserQuestions(userId);
	}

	public <T> T getAllQuestions() {
		return new QuestionCategoryDao().getAllQuestions();
	}

	public <T> T getQuestionFor24hByIdCategories(int categoriesId) {
		return new QuestionCategoryDao().getQuestionFor24hByIdCategories(categoriesId);
	}
}
